package com.example.agriculturalmanagement.adapter;

import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.agriculturalmanagement.Kind;
import com.example.agriculturalmanagement.R;

import java.util.List;

public class DataInfoAdapter extends BaseQuickAdapter<Kind, BaseViewHolder> {


    public DataInfoAdapter(Context context, List<Kind> data) {
        super(R.layout.item_data_info, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Kind item) {
        helper.setText(R.id.tv_title, item.getName())
                .setText(R.id.tv_value, item.getCode());
    }
}
